package com.turing.merchant.mapper;

import com.turing.merchant.entity.Merchant;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.turing.merchant.entity.MerchantCategory;
import org.apache.ibatis.annotations.Param;
import result.Result;

import java.util.List;
import java.util.Map;

/**
* @author 28123
* @description 针对表【merchant(商家)】的数据库操作Mapper
* @createDate 2023-05-08 13:26:25
* @Entity com.turing.merchant.entity.Merchant
*/
public interface MerchantMapper extends BaseMapper<Merchant> {

    List<Map> merList(@Param("merchantName") String merchantName, @Param("loginAccount") String loginAccount, @Param("merchantPhone") String merchantPhone, @Param("categoryId") String categoryId, @Param("cdType") Integer cdType, @Param("longitude") String longitude, @Param("latitude") String latitude, @Param("cityId") String cityId, @Param("sortType") Integer sortType, @Param("orderType") Integer orderType, @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize, @Param("merList") List<String> merIds);

    List<Map> getMerById(@Param("id") String id);

    List<Map> listMerComments();

    int updateByIdCategory(MerchantCategory merchantCategory);

    void insertCategoryId(MerchantCategory merchantCategory1);

    void deleteCategoryId(MerchantCategory merchantCategory);

    List<Map> adminList(@Param("merchantId") String merchantId, @Param("cusNickname") String cusNickname, @Param("cusInfo") String cusInfo, @Param("sortType") Integer sortType, @Param("orderType") Integer orderType, @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize, @Param("merIds") List<String> merIds, @Param("cusId") String cusId);

    Map selectDianZhang(@Param("merchantId") String merchantId, @Param("cusNickname") String cusNickname, @Param("cusInfo") String cusInfo, @Param("sortType") Integer sortType, @Param("orderType") Integer orderType, @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize, @Param("merIds") List<String> merIds);
}







